package com.guoxin.tree.binarytree;

import lombok.Data;

/**
 * 节点类
 *
 * @author guoxin
 */
@Data
public class Node {
    /** data use key value */
    private int data;

    /** other data */
    private double dData;

    /** this node's leftNode child */
    private Node leftNode;

    /** this node's rightNode child */
    private Node rightNode;

    public void displayNode() {
        System.out.print("{");
        System.out.print(data);
        System.out.print(",");
        System.out.print(data);
        System.out.print("}");
    }

    public Node(int data, float fData) {
        this.data = data;
        this.dData = fData;
    }
}
